package com.hsj.common.system.convert;

import com.hsj.common.system.entity.MenuPrivilegeDo;
import com.hsj.common.system.vo.request.ReqMenuPrivilegeCreateVo;
import com.hsj.common.system.vo.request.ReqMenuPrivilegeUpdateVo;
import com.hsj.common.system.vo.response.RespMenuPrivilegeVo;
import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 菜单接口权限 Vo转换类
 * @Author: Czy
 * @Date: 2024-02-03 16:08:04
 * @Email: 314170122@qq.com
 */
@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
public interface MenuPrivilegeConvert {

    MenuPrivilegeDo voToDo(ReqMenuPrivilegeCreateVo vo);

    MenuPrivilegeDo voToDo(ReqMenuPrivilegeUpdateVo vo);

    RespMenuPrivilegeVo doToVo(MenuPrivilegeDo menuPrivilege);

    List<RespMenuPrivilegeVo> doToVo(List<MenuPrivilegeDo> menuPrivilegeList);
}
